const routes = [
  {
    path: '/:pathMatch(.*)',
    redirect: '/home'
  },
  // {
  //   name: 'login',
  //   path: '/',
  //   component: () => import(/* webpackChunkName: 'login' */ 'components/login/login'),
  // },
  {
    name: 'home',
    path: '/home',
    redirect: '/home/homeMap',
    component: () => import(/* webpackChunkName: 'home' */ 'components/home/home'),
    children: [
      {
        name: 'homeMap',
        path: '/home/homeMap',
        meta: { navActive: 'homeMap' },
        component: () => import(/* webpackChunkName: 'homeMap' */ 'components/homeMap/homeMap'),
      },
      {
        name: 'realtime',
        path: '/home/realtime',
        redirect: '/home/realtime/realtimeSz',
        component: () => import(/* webpackChunkName: 'realtime' */ 'components/realtime/realtime'),
        children: [
          {
            name: 'realtimeSz',
            path: '/home/realtime/realtimeSz',
            meta: { navActive: 'realtime', menuActive: 'realtimeSz' },
            component: () => import(/* webpackChunkName: 'realtimeSz' */ 'components/realtimeSz/realtimeSz'),
          },
          {
            name: 'realtimeBz',
            path: '/home/realtime/realtimeBz',
            meta: { navActive: 'realtime', menuActive: 'realtimeBz' },
            component: () => import(/* webpackChunkName: 'realtimeBz' */ 'components/realtimeBz/realtimeBz'),
          },
          {
            name: 'realtimeSk',
            path: '/home/realtime/realtimeSk',
            meta: { navActive: 'realtime', menuActive: 'realtimeSk' },
            component: () => import(/* webpackChunkName: 'realtimeSk' */ 'components/realtimeSk/realtimeSk'),
          },
          {
            name: 'realtimeNld',
            path: '/home/realtime/realtimeNld',
            meta: { navActive: 'realtime', menuActive: 'realtimeNld' },
            component: () => import(/* webpackChunkName: 'realtimeNld' */ 'components/realtimeNld/realtimeNld'),
          },
          {
            name: 'realtimeHdz',
            path: '/home/realtime/realtimeHdz',
            meta: { navActive: 'realtime', menuActive: 'realtimeHdz' },
            component: () => import(/* webpackChunkName: 'realtimeHdz' */ 'components/realtimeHdz/realtimeHdz'),
          },
          {
            name: 'realtimeCwz',
            path: '/home/realtime/realtimeCwz',
            meta: { navActive: 'realtime', menuActive: 'realtimeCwz' },
            component: () => import(/* webpackChunkName: 'realtimeCwz' */ 'components/realtimeCwz/realtimeCwz'),
          },
          {
            name: 'realtimeYlz',
            path: '/home/realtime/realtimeYlz',
            meta: { navActive: 'realtime', menuActive: 'realtimeYlz' },
            component: () => import(/* webpackChunkName: 'realtimeYlz' */ 'components/realtimeYlz/realtimeYlz'),
          },
          {
            name: 'realtimeGwyw',
            path: '/home/realtime/realtimeGwyw',
            meta: { navActive: 'realtime', menuActive: 'realtimeGwyw' },
            component: () => import(/* webpackChunkName: 'realtimeGwyw' */ 'components/realtimeGwyw/realtimeGwyw'),
          },
          {
            name: 'realtimeGwsz',
            path: '/home/realtime/realtimeGwsz',
            meta: { navActive: 'realtime', menuActive: 'realtimeGwsz' },
            component: () => import(/* webpackChunkName: 'realtimeGwsz' */ 'components/realtimeGwsz/realtimeGwsz'),
          },
          {
            name: 'realtimeSzdm',
            path: '/home/realtime/realtimeSzdm',
            meta: { navActive: 'realtime', menuActive: 'realtimeSzdm' },
            component: () => import(/* webpackChunkName: 'realtimeSzdm' */ 'components/realtimeSzdm/realtimeSzdm'),
          },
          {
            name: 'realtimeSzzdz',
            path: '/home/realtime/realtimeSzzdz',
            meta: { navActive: 'realtime', menuActive: 'realtimeSzzdz' },
            component: () => import(/* webpackChunkName: 'realtimeSzzdz' */ 'components/realtimeSzzdz/realtimeSzzdz'),
          },
          {
            name: 'realtimeSzzdzDay',
            path: '/home/realtime/realtimeSzzdzDay',
            meta: { navActive: 'realtime', menuActive: 'realtimeSzzdzDay' },
            component: () => import(/* webpackChunkName: 'realtimeSzzdzDay' */ 'components/realtimeSzzdzDay/realtimeSzzdzDay'),
          },
          {
            name: 'realtimeWscjs',
            path: '/home/realtime/realtimeWscjs',
            meta: { navActive: 'realtime', menuActive: 'realtimeWscjs' },
            component: () => import(/* webpackChunkName: 'realtimeWscjs' */ 'components/realtimeWscjs/realtimeWscjs'),
          },
          {
            name: 'realtimeWsccs',
            path: '/home/realtime/realtimeWsccs',
            meta: { navActive: 'realtime', menuActive: 'realtimeWsccs' },
            component: () => import(/* webpackChunkName: 'realtimeWsccs' */ 'components/realtimeWsccs/realtimeWsccs'),
          },
          {
            name: 'realtimeNwsz',
            path: '/home/realtime/realtimeNwsz',
            meta: { navActive: 'realtime', menuActive: 'realtimeNwsz' },
            component: () => import(/* webpackChunkName: 'realtimeNwsz' */ 'components/realtimeNwsz/realtimeNwsz'),
          },
          {
            name: 'realtimeNwdl',
            path: '/home/realtime/realtimeNwdl',
            meta: { navActive: 'realtime', menuActive: 'realtimeNwdl' },
            component: () => import(/* webpackChunkName: 'realtimeNwdl' */ 'components/realtimeNwdl/realtimeNwdl'),
          },
          {
            name: 'realtimeZnpm',
            path: '/home/realtime/realtimeZnpm',
            meta: { navActive: 'realtime', menuActive: 'realtimeZnpm' },
            component: () => import(/* webpackChunkName: 'realtimeZnpm' */ 'components/realtimeZnpm/realtimeZnpm'),
          },
          {
            name: 'realtimePsbz',
            path: '/home/realtime/realtimePsbz',
            meta: { navActive: 'realtime', menuActive: 'realtimePsbz' },
            component: () => import(/* webpackChunkName: 'realtimePsbz' */ 'components/realtimePsbz/realtimePsbz'),
          },
          {
            name: 'realtimeFszjldt',
            path: '/home/realtime/realtimeFszjldt',
            meta: { navActive: 'realtime', menuActive: 'realtimeFszjldt' },
            component: () => import(/* webpackChunkName: 'realtimeFszjldt' */ 'components/realtimeFszjldt/realtimeFszjldt'),
          },
          {
            name: 'realtimeXbdldt',
            path: '/home/realtime/realtimeXbdldt',
            meta: { navActive: 'realtime', menuActive: 'realtimeXbdldt' },
            component: () => import(/* webpackChunkName: 'realtimeXbdldt' */ 'components/realtimeXbdldt/realtimeXbdldt'),
          },
        ]
      },
      {
        name: 'device',
        path: '/home/device',
        meta: { navActive: 'device' },
        component: () => import(/* webpackChunkName: 'device' */ 'components/device/device'),
      },
      {
        name: 'company',
        path: '/home/company',
        meta: { navActive: 'company' },
        component: () => import(/* webpackChunkName: 'company' */ 'components/company/company'),
      },
      {
        name: 'work',
        path: '/home/work',
        meta: { navActive: 'work' },
        component: () => import(/* webpackChunkName: 'work' */ 'components/work/work'),
      },
      {
        name: 'check',
        path: '/home/check',
        meta: { navActive: 'check' },
        component: () => import(/* webpackChunkName: 'check' */ 'components/check/check'),
      },
      {
        name: 'statistics',
        path: '/home/statistics',
        redirect: '/home/statistics/statisticsSz',
        component: () => import(/* webpackChunkName: 'statistics' */ 'components/statistics/statistics'),
        children: [
          {
            name: 'statisticsSz',
            path: '/home/statistics/statisticsSz',
            meta: { navActive: 'statistics', menuActive: 'statisticsSz' },
            component: () => import(/* webpackChunkName: 'statisticsSz' */ 'components/statisticsSz/statisticsSz'),
          },
          {
            name: 'statisticsBz',
            path: '/home/statistics/statisticsBz',
            meta: { navActive: 'statistics', menuActive: 'statisticsBz' },
            component: () => import(/* webpackChunkName: 'statisticsBz' */ 'components/statisticsBz/statisticsBz'),
          },
        ]
      },
      {
        name: 'library',
        path: '/home/library',
        redirect: '/home/library/libraryReservoir',
        component: () => import(/* webpackChunkName: 'library' */ 'components/library/library'),
        children: [
          {
            name: 'librarySk',
            path: '/home/library/librarySk',
            meta: { navActive: 'library', menuActive: 'librarySk' },
            component: () => import(/* webpackChunkName: 'librarySk' */ 'components/librarySk/librarySk'),
          },
        ]
      }
    ]
  }
]

export default routes
